{include file="public/header" /}

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5">
                        <div class="layui-inline layui-show-xs-block">
                            <input type="text" name="title" placeholder="管理员账号|昵称|备注" value="{:input('get.title')}"
                                autocomplete="off" class="layui-input">
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <button class="layui-btn  layui-btn-normal" lay-submit="" lay-filter="sreach">搜索</button>
                        </div>
                    </form>
                </div>
                <div class="layui-card-header">
                    <button class="layui-btn  layui-btn-normal" onclick="data_edit('添加用户','input')"><i
                            class="layui-icon">&#xe654;</i>添加</button>
                </div>
                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>账号</th>
                                <th>备注</th>
                                <th>登陆次数</th>
                                <th>最后登陆</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {foreach $list as $v}
                            <tr>
                                <td>{$v.id}</td>
                                <td>{$v.username}</td>
                                <td>{$v.nickname}</td>
                                <td>{$v.login_num}</td>
                                <td>{$v.updated}</td>
                                <td class="td-manage">
                                    <a title="操作" onclick="data_edit('操作','/admin/input?id={$v.id}')"
                                        href="javascript:;" class="layui-btn layui-btn-normal">操作</a>
                                    <a title="删除" onclick="data_del(this,'/admin/del','{$v.id}')" href="javascript:;"
                                        class="layui-btn-danger layui-btn">
                                        删除
                                    </a>
                                </td>
                            </tr>
                            {/foreach}

                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body ">
                    <div class="page">
                        {$list->render()|raw}
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
</body>
{include file="public/footer"}